import Vue from 'vue'
import Router from 'vue-router'
import MainPage from '@/views/MainPage.vue'
import News from '@/views/News.vue'
import Physical from '@/views/PhysicalEducation.vue'
import Phydomestic from '@/views/phydomestic.vue'
import Phymain from '@/views/phymain.vue'
import Phymaindomestic from '@/views/phymaindomestic.vue'
import VueRouter from 'vue-router'
Vue.use(Router)
const router1 = new VueRouter({
  routes: [
    {
      path: '/main',
      component: MainPage,
    },
    {
      path: '/news',
      component: News,
    },
    {
      path: '/physical',
      component: Physical,
      children: [
        {
          path: 'phymain',
          component: Phymain,
        },
        {
          path: 'phydomestic',
          component: Phydomestic,
        },
        {
          path: 'phymaindomestic',
          component: Phymaindomestic,
        },
      ],
    },
  ],
})
export default router1
